<?php

declare(strict_types=1);

namespace App\CustHub\Model;

use Mine\MineModel;

/**
 * @property int $id 主键ID
 * @property int $cs_id 客服ID
 * @property string $user_id 关联用户ID
 * @property string $group_nickname 群发称呼
 * @property array $deal_status 成交情况 (0=未成交 1=首购 2=复购 3=多次)
 * @property string $industry 行业
 * @property string $scale 规模
 * @property string $mobile 手机号
 * @property string $demand 需求
 * @property string $concern 顾虑
 * @property string $source_channel 来源渠道
 * @property int $interview 面谈 (0=否 1=是)
 * @property \Carbon\Carbon $created_at 创建时间
 * @property \Carbon\Carbon $updated_at 更新时间
 */
class ChTalkUserExtendInfo extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'ch_talk_user_extend_info';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'cs_id', 'user_id', 'group_nickname', 'deal_status', 'industry', 'scale', 'mobile', 'demand', 'concern', 'source_channel', 'interview', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'cs_id' => 'integer', 'deal_status' => 'array', 'interview' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
